import request from '@/utils/request'

export function specification_page(params) {
    return request({
        url: '/specification/page',
        method: 'get',
        params
    })
}

export function specification_list() {
    return request({
        url: '/specification/list',
        method: 'get'
    })
}

export function specification_query(id) {
    return request({
        url: `/specification/${id}`,
        method: 'get'
    })
}

export function specification_update(data) {
    return request({
        url: `/specification`,
        method: 'put',
        data
    })
}
export function specification_add(data) {
    return request({
        url: `/specification`,
        method: 'post',
        data
    })
}
export function specification_delete(id) {
    return request({
        url: `/specification/${id}`,
        method: 'delete'
    })
}

export function dish_page(params) {
    return request({
        url: '/dish/page',
        method: 'get',
        params
    })
}
export function dish_query(id) {
    return request({
        url: `/dish/${id}`,
        method: 'get'
    })
}

export function dish_update(data) {
    return request({
        url: `/dish`,
        method: 'put',
        data
    })
}
export function dish_add(data) {
    return request({
        url: `/dish`,
        method: 'post',
        data
    })
}
export function dish_delete(id) {
    return request({
        url: `/dish/${id}`,
        method: 'delete'
    })
}